package com.wjh.www.entity.po;

import com.wjh.www.annotation.mybatis.Column;
import com.wjh.www.annotation.mybatis.Table;

import java.util.Date;

/**
 * @author wjh
 * @date 2021/9/10 14:01
 * @Package com.wjh.anyview.entity.po
 */
@Table("course")
public class Course {
    @Column(value = "id")
    private Long id;
    @Column(value = "name")
    private String name;
    @Column(value = "teacher")
    private String teacher;
    @Column(value = "location")
    private String location;
    @Column(value = "week_day")
    private Integer weekDay;
    @Column(value = "batch")
    private Integer batch;
    @Column(value = "max_num")
    private Integer maxNum;
    @Column(value = "current_num")
    private Integer currentNum;
    @Column(value = "description")
    private String description;
    @Column(value = "grade")
    private Integer grade;
    @Column(value = "start_time")
    private Date startTime;
    @Column(value = "version")
    private Long version;

    public Course() {
    }

    public Course(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(Integer weekDay) {
        this.weekDay = weekDay;
    }

    public Integer getBatch() {
        return batch;
    }

    public void setBatch(Integer batch) {
        this.batch = batch;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public Integer getCurrentNum() {
        return currentNum;
    }

    public void setCurrentNum(Integer currentNum) {
        this.currentNum = currentNum;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", teacher='" + teacher + '\'' +
                ", location='" + location + '\'' +
                ", weekDay=" + weekDay +
                ", batch=" + batch +
                ", maxNum=" + maxNum +
                ", currentNum=" + currentNum +
                ", description='" + description + '\'' +
                ", grade=" + grade +
                ", startTime=" + startTime +
                ", version=" + version +
                '}';
    }
}
